#ifndef __SGL_CHECKBOX_H__
#define __SGL_CHECKBOX_H__

#include "../core/sgl_core.h"
#include "../sgl.h"
#include "../draw/sgl_draw_rect.h"
#include "../draw/sgl_draw_circle.h"


typedef struct sgl_checkbox {
    sgl_obj_t   obj;
    sgl_font_t *font;
    const char *text;
    bool status;
    sgl_align_type_e align;
}sgl_checkbox_t;


int sgl_checkbox_init(sgl_checkbox_t *checkbox, sgl_obj_t* parent, bool status);
sgl_obj_t* sgl_checkbox_create(sgl_obj_t* parent, bool status);
void sgl_checkbox_set_status(sgl_obj_t *obj, bool status);
bool sgl_checkbox_get_status(sgl_obj_t *obj);
void sgl_checkbox_set_font(sgl_obj_t *obj, sgl_font_t *font);
void sgl_checkbox_set_text(sgl_obj_t *obj, const char* text);
void sgl_checkbox_draw(sgl_obj_t *obj);
void sgl_checkbox_event_cb(sgl_obj_t *obj);

#endif //__SGL_CHECKBOX_H__
